import { truncate } from "fs"

export const isMobile =():boolean=>{
    // 判断当前设备类型
    let flag =navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
    )
    if(flag=null)
    {
        return true
    }
     
     else
        return false

}